package net.dlz.example.service;

import net.dlz.example.domain.News;
import net.dlz.example.domain.SearchNewsResponse;

import java.util.List;

public interface NewsService {
    SearchNewsResponse findAllNews(Integer pageNum, Integer pageSize);

    SearchNewsResponse findNewsLinkTopic(String keywords, Integer pageNum, Integer pageSize);

    int saveNews(News news);

    int deleteNews(String id);

    News findNewsByPrimaryKey(String id);

    List<News> listNews();
}
